//
//  MyCenterViewModel.m
//  GuShiNews
//
//  Created by huachun on 2019/8/16.
//  Copyright © 2019 Jones. All rights reserved.
//

#import "MyCenterViewModel.h"
#import "CenterModel.h"

@implementation MyCenterViewModel

- (instancetype)init:(id)responseObject{
    if (self = [super init]) {
        
        self.dataSource = [NSMutableArray new];
        
        NSMutableArray *array001 = [NSMutableArray new];
        [self.dataSource addObject:array001];
        
        CenterModel *modeltop = [CenterModel new];
        modeltop.Height = 200;
        modeltop.Type   = @"10";
        [array001 addObject:modeltop];
        
        
        NSMutableArray *array0 = [NSMutableArray new];
        [self.dataSource addObject:array0];
        
        for (int i=0; i<3; i++) {
            CenterModel *model = [CenterModel new];
            model.Height = 60;
            if (i==0) {
                model.Tittle = @"我的粉丝";
                model.Logo = @"fensi";
                model.Type   = @"15";
            }else if (i==1){
                model.Tittle = @"我关注的";
                model.Logo = @"guanzhu";
                model.Type   = @"16";
            }else {
                model.Tittle = @"我发布的";
                model.Logo = @"yewu";
                model.Type   = @"17";
            }
            [array0 addObject:model];
        }
        
        
        NSMutableArray *array003 = [NSMutableArray new];
        [self.dataSource addObject:array003];
        
        for (int i=0; i<2; i++) {
            CenterModel *model = [CenterModel new];
            model.Height = 60;
            if (i==1) {
                model.Tittle = @"发出的评论";
                model.Logo = @"center_fabu";
                model.Type   = @"5";
            }else if (i==0){
                model.Tittle = @"收到的评论";
                model.Logo = @"center_pinglun";
                model.Type   = @"8";
            }
            [array003 addObject:model];
        }
        
        
        NSMutableArray *array002 = [NSMutableArray new];
        [self.dataSource addObject:array002];
        
        for (int i=0; i<3; i++) {
            CenterModel *model = [CenterModel new];
            model.Height = 60;
            if (i==0) {
                model.Tittle = @"收藏的";
                model.Logo = @"center_like";
                model.Type   = @"0";
            }else if (i==1){
                model.Tittle = @"举报的";
                model.Logo = @"center_hide";
                model.Type   = @"1";
            }else if (i==2){
                model.Type   = @"6";
                model.Tittle = @"历史";
                model.Logo = @"center_lishi";
            }
            [array002 addObject:model];
        }
        
        NSMutableArray *array004 = [NSMutableArray new];
        [self.dataSource addObject:array004];
        
        for (int i=0; i<1; i++) {
            CenterModel *model = [CenterModel new];
            model.Height = 60;
            if (i==0) {
                model.Type   = @"30";
                model.Tittle = @"设置";
                model.Logo = @"center_setting";
            }
            [array004 addObject:model];
        }
        
    }
    return self;
}


@end
